﻿<%@ Page Language="VB" MasterPageFile="~/MainLayout.master" AutoEventWireup="false" CodeFile="Dashboard.aspx.vb" Inherits="Dashboard" title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:Label id="lblStaffUID" runat="server" Visible="false" />
<asp:Label ID="lblStaffType" runat="server" Visible="false" />
<h1>Dashboard</h1>
<hr />
<!-- Reminder -->
<asp:LinkButton ID="lnkReminder" runat="server" Font-Size="12px" />
<br />
<!-- Announcement -->
<table class="AnnouncementContainer" border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
        <td>
        
            <table class="Announcement" border="0" width="100%">
                <tr>
                    <td><asp:label ID="lblHeadNoOfItem" runat="server" text="0" />&nbsp;Announcement(s)</td>
                    <td align="right">
                        Number of entries per page : <asp:LinkButton ID="lnkHead10Item" runat="server" Text="10" ForeColor="White" />&nbsp;<asp:LinkButton ID="lnkHead25Item" runat="server" Text="25" ForeColor="White" />&nbsp;<asp:LinkButton ID="lnkHead100Item" runat="server" Text="100" ForeColor="White" />&nbsp;<asp:LinkButton ID="lnkHead150Item" runat="server" Text="150" ForeColor="White" />
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td>
           
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="AnnouncementDisplay">
            <thead>
                <tr>
                    <th scope="col" id="first-col"><strong><asp:LinkButton ID="lnkDate" runat="server" Text="Date" ForeColor="Black" style="text-decoration:none" /></strong></th>
                    <th scope="col"><strong><asp:LinkButton ID="lnkTitle" runat="server" Text="Title" ForeColor="Black" style="text-decoration:none" /></strong></th>
                    <th scope="col"><strong><asp:LinkButton ID="lnkPriority" runat="server" Text="Priority" ForeColor="Black" style="text-decoration:none" /></strong></th>
                    <th scope="col"><strong><asp:LinkButton ID="lnkCreateBy" runat="server" Text="Crete By" ForeColor="Black" style="text-decoration:none" /></strong></th>
                </tr>
            </thead> 
            <tbody>
                <asp:Repeater ID="repAnnouncement" runat="server">
                    <ItemTemplate>
                        <tr>
                            <td id="first-col">
                                <asp:LinkButton ID="lbtDateCreate" runat="server" Text='<%# Bind("CreateDate","{0:dd-MMM-yyyy}") %>' CommandArgument='<%#Container.dataitem("AnnouncementId").tostring %>' CommandName="View" />
                                <asp:Label ID="lblRepAnnouncementUID" runat="server" Text='<%#Container.dataitem("AnnouncementId").tostring %>' Visible="false" />                                 
                            </td>
                            <td>
                                <asp:LinkButton ID="lbtPriority" runat="server" Text='<%#Container.DataItem("Priority").ToString%>' CommandArgument='<%#Container.dataitem("AnnouncementId").tostring %>' CommandName="View" />
                            </td>
                            <td>
                                <asp:LinkButton ID="lbtTitle" runat="server" Text='<%#Container.DataItem("Title").ToString%>' CommandArgument='<%#Container.dataitem("AnnouncementId").tostring %>' CommandName="View" />
                            </td>
                            <td>
                                <asp:LinkButton ID="lbtCreateBy" runat="server" Text=' <%#Container.DataItem("CreateBy").ToString%>' CommandArgument='<%#Container.dataitem("AnnouncementId").tostring %>' CommandName="View" />
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
               </tbody>
            </table>
            
      </td>
    </tr>
    <tr>
        <td>
            <table class="AnnouncementFooter" width="100%" style="border:none;">
                <tr>
                    <td ><asp:label ID="lblFootNoOfItem" runat="server" text="0" />&nbsp;Announcement(s)</td>
                    <td align="center" valign="middle">
                        <asp:Panel ID="pnlNavigation" runat="server" style="text-align:center; vertical-align:middle;">
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-first2.png"   ID="btnMoveFirst"  runat="server" Width="28"  Height="18" style="vertical-align:middle;"/>&nbsp;
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-back2.png"    ID="btnPrevious"   runat="server" Width="28"  Height="18" style="vertical-align:middle;"/>&nbsp;
                                <asp:TextBox ID="txtPageNo" runat="server" Text="1" Height="12" Width="28" Font-Size="10px" style="text-align:center; vertical-align:middle;" onkeypress="return isNumberKeyOnly(event)" onpaste="return isNumberKeyOnly(event)" />&nbsp;
                                <asp:Label ID="lblTotalPage" runat="server" Height="20" Font-Size="10px" style="vertical-align: middle;"/>&nbsp;
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-go2.png"      ID="btnGo"          runat="server"  Width="28" Height="18" style="vertical-align:middle;"/>&nbsp;
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-foward2.png"  ID="btnNext"        runat="server"  Width="28" Height="18" style="vertical-align:middle;"/>&nbsp;
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-last2.png"    ID="btnMoveLast"    runat="server"  Width="28" Height="18" style="vertical-align:middle;"/>
                                <asp:Label ID="lblMaxPageCount" runat="server" Visible="false" Height="20" Font-Size="10px" style="vertical-align:middle;"/>
                      </asp:Panel>
                    </td>
                    <td align="right">
                        Number of entries per page : <asp:LinkButton ID="lnkFoot10Item" runat="server" Text="10" />&nbsp;<asp:LinkButton ID="lnkFoot25Item" runat="server" Text="25" />&nbsp;<asp:LinkButton ID="lnkFoot100Item" runat="server" Text="100" />&nbsp;<asp:LinkButton ID="lnkFoot150Item" runat="server" Text="150" />
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>

<!-- Reminder -->

</asp:Content>

